The following example demonstrates how to change the default text displayed in the progress window when the Print or ExportToXps methods are called. The implementation of the PrintGrid method is provided below.

XAML
Copy Code
<Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid">
  <Grid.Resources>
    <xcdg:DataGridCollectionViewSource x:Key="cvs_employees"
                                    Source="{Binding Source={x:Static Application.Current},
                                                     Path=Employees}"/>
  </Grid.Resources>
  <DockPanel>
    <Button Content="Print Employee Information"
            Click="PrintGrid"
            DockPanel.Dock="Top"/>
    <xcdg:DataGridControl x:Name="EmployeesGrid"
                          ItemsSource="{Binding Source={StaticResource cvs_employees}}"
                          DockPanel.Dock="Bottom">
      <xcdg:DataGridControl.PrintView>
        <xcdg:PrintTableView>
          <xcdg:PrintTableView.ProgressWindowDescription>
            <StackPanel Orientation="Horizontal">
              <TextBlock Text="Printing page "/>
              <TextBlock Text="{Binding CurrentPageNumber}"/>
              <TextBlock Text=" of employee information..."/>
            </StackPanel>
          </xcdg:PrintTableView.ProgressWindowDescription>
        </xcdg:PrintTableView>
      </xcdg:DataGridControl.PrintView>
    </xcdg:DataGridControl>
  </DockPanel>
</Grid>
VB.NET
Copy Code
Private Sub PrintGrid( ByVal sender As Object, ByVal e As RoutedEventArgs )
  Me.EmployeesGrid.Print( "EmployeeInformation", True )
End Sub
C#
Copy Code
private void PrintGrid( object sender, RoutedEventArgs e )
{
  this.EmployeesGrid.Print( "EmployeeInformation", true );
}